<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>push()</title>
	</head>
	<body>
		<script>
			// push() 用于向数组末尾添加一个或多个元素，并返回新数组的长度
			// 此方法会改变原数组

			let arr = [1, 2, 3];
			arr.push(4);
			console.log(arr.push(5, 6));
			console.log(arr);
		</script>
	</body>
</html>
